# -*-  coding:utf-8 -*-
# Author : lihongliang

d = {}

for i in range(20):
    d[i] = i -50

d2 =d.items()
print(d2)
print('test'.center(50,'='))
print(sorted(d2))


d3 = sorted(d.items(), key = lambda  x : x[1])
print(d3)
d4 = sorted(d.items(), key = lambda  x : x[1],reverse=True)
print(d4)

de =  [1, 2, 3, 4, 5, 6]
for i,j in enumerate(de):
    print(i,j)